package org.framework.define.bean.entity;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;


/**
 * The persistent class for the tbl_user_account database table.
 * 
 */
@Entity
@Table(name="tbl_user_account")
public class TblUserAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="user_id", unique=true, nullable=false, length=20)
	private String userId;

	@Column(nullable=false, precision=15, scale=2)
	private BigDecimal balance;

	@Column(nullable=false, precision=15, scale=2)
	private BigDecimal coins;

	@Column(nullable=false)
	private int credit;

	@Column(name="security_deposit", nullable=false, precision=15, scale=2)
	private BigDecimal securityDeposit;
	
	@Transient
	private int level;
	
	public TblUserAccount() {
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigDecimal getBalance() {
		return this.balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public BigDecimal getCoins() {
		return this.coins;
	}

	public void setCoins(BigDecimal coins) {
		this.coins = coins;
	}

	public int getCredit() {
		return this.credit;
	}

	public void setCredit(int credit) {
		this.credit = credit;
	}

	public BigDecimal getSecurityDeposit() {
		return this.securityDeposit;
	}

	public void setSecurityDeposit(BigDecimal securityDeposit) {
		this.securityDeposit = securityDeposit;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}